<template>
  <div class="text-data">
    <div class="placeholder-content">
      <div class="text-center">
        <p class="title">文本类数据</p>
        <p class="description">此模块用于展示和管理文本类非结构化数据</p>
        <div class="feature-list">
          <div class="feature-item">
            <h3>文本数据管理</h3>
            <p>上传、分类和检索文本文件</p>
          </div>
          <div class="feature-item">
            <h3>文本分析</h3>
            <p>情感分析、关键词提取和主题建模</p>
          </div>
          <div class="feature-item">
            <h3>文本可视化</h3>
            <p>词云图、关系图谱和文本聚类展示</p>
          </div>
        </div>
        <div class="action-buttons">
          <el-button type="primary" @click="goToTextDataPage">进入文本数据页面</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TextData',
  data() {
    return {
      // 数据将在后续开发中添加
    }
  },
  methods: {
    goToTextDataPage() {
      this.$router.push('/text-data');
    }
  }
}
</script>

<style lang="scss" scoped>
.text-data {
  height: 100%;
  padding: 20px;
  color: #d3d6dd;

  .placeholder-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    .action-buttons {
      margin-top: 30px;
    }

    .title {
      font-size: 24px;
      font-weight: bold;
      color: #68d8fe;
      margin-bottom: 10px;
    }

    .description {
      font-size: 16px;
      margin-bottom: 30px;
      max-width: 600px;
    }

    .feature-list {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      margin-top: 20px;

      .feature-item {
        background-color: rgba(104, 216, 254, 0.1);
        border: 1px solid rgba(104, 216, 254, 0.3);
        border-radius: 8px;
        padding: 20px;
        width: 250px;
        transition: all 0.3s;

        &:hover {
          transform: translateY(-5px);
          box-shadow: 0 5px 15px rgba(104, 216, 254, 0.2);
        }

        h3 {
          color: #68d8fe;
          font-size: 18px;
          margin-bottom: 10px;
        }

        p {
          font-size: 14px;
          line-height: 1.5;
        }
      }
    }
  }
}
</style>
